// vite中导入图片资源
export const importAssets = (path) => new URL(path, import.meta.url).href;

// 是否为对象
export const isObject = (value) => (typeof value === 'object' && value !== null)